<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>FloatAd</title>

</head>

<body onresize="_size()" style="height:5000px;">
<img src="images/SC2.jpg" id="pictest" width="350" height="150" style="z-index:999; position:absolute; width:350px; height:150px; left:0px;" />
<img src="images/SC2.jpg" id="pictest2" width="350" height="150" style="z-index:999; position:absolute; width:350px; height:150px; left:0px;" />
<script language="javascript">
function _size(){
	h=document.documentElement.clientHeight;
	w=document.documentElement.clientWidth;
	img2.style.left=(w-img2.width)+"px";
}
function _test(){
	temp=document.documentElement.scrollTop+document.body.scrollTop;
	diff=0.05*((temp+(h-img.height)/2)-newH);
	if(diff>0){
		diff=Math.ceil(diff);
	}
	else{
		diff=Math.floor(diff);
	}
	cunt+=diff;
	newH=(h-img.height)/2+cunt;
	img.style.top=newH+"px";
	img2.style.top=img.style.top;
}
var h,w,newH=0,newW,temp,diff,cunt=0;
var img=document.getElementById("pictest");
var img2=document.getElementById("pictest2");
h=document.documentElement.clientHeight;
w=document.documentElement.clientWidth;
img2.style.left=(w-img2.width)+"px"
window.setInterval("_test()",20);
</script>
</body>
</html>
